package com.ruoyi.web.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

@Data
@TableName(value = "mes_delivery")
public class Delivery {
    @TableId
    private String id;

    @TableField(exist = false)
    @Excel(name = "序号", width = 8)
    private Integer no;

    /** 状态 */
    @Excel(name = "状态", combo = {"未提交", "已提交"}, readConverterExp = "1=未提交,2=已提交")
    private int status;

    /** 发货单编码 */
    @Excel(name = "发货单编码")
    private String code;

    @Excel(name = "生产单编码")
    @TableField(exist = false)
    private String produceNo;//生产单编号

    @TableField(exist = false)
    private String produceId;
    //生产单id

    /** 书刊编码 */
    @Excel(name = "书刊编码")
    private String bookCode;

    /** 书刊名称 */
    @Excel(name = "书刊名称")
    private String bookName;

    /** 发货日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发货日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date deliveryDate;

    //发货名称
    private String deliveryName;
    /** 客户id */
    private Long customId;
    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customName;

    @Excel(name = "发货数量")
    @TableField(exist = false)
    private Integer quantity;

    @Excel(name = "订单数量")
    @TableField(exist = false)
    private String orderCount;

    @Excel(name = "发货纸令数")
    @TableField(exist = false)
    private BigDecimal lingCount;

    @TableField(exist = false)
    private String sheetCount;//印张数量

    @TableField(exist = false)
    private String reamAmount;//纸张令数

    /** 创建人 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 更新人 */
    private String updateBy;
    /** 更新时间 */
    private Date updateTime;
    /** 多字段内容，json */
    private String irregularBooks;
    //发货产品名称
    private String productName;



    @TableField(exist = false)
    private List<DeliveryDetail> deliveryDetailList;
//    @TableField(exist = false)
//    private List<DeliveryBooks> deliveryBooksList;
    @TableField(exist = false)
    private String searchDate;
    @TableField(exist = false)
    private String pubNo;
    @TableField(exist = false)
    private String dictLabel;
    @TableField(exist = false)
    private String productNo;
    @TableField(exist = false)
    private BigDecimal sheet;
    @TableField(exist = false)
    private Integer year;
    @TableField(exist = false)
    private Integer month;
    @TableField(exist = false)
    private HashMap<String, String> hashMap;
    @TableField(exist = false)
    private String deliveryCount;

}
